using System.Collections.Generic;
using System.Text;
using System;


namespace BullTasDesaDal.Entities
{

    public partial class Appraisal
    {
        public Appraisal() { }
        public virtual int Id { get; set; }
        public virtual Locality Locality { get; set; }
        public virtual Zone Zone { get; set; }
        public virtual Locality LocalityPC { get; set; }
        public virtual Locality LocalityPL { get; set; }
        public virtual string EstablishmentName { get; set; }
        public virtual string Owner { get; set; }
        public virtual string Contact { get; set; }
        public virtual string OwnerTel { get; set; }
        public virtual string OwnerMail { get; set; }
        public virtual string CatastralNomenclature { get; set; }
        public virtual string FolderNumber { get; set; }
        public virtual decimal Ha { get; set; }
        public virtual short DistancePC { get; set; }
        public virtual short DistancePL { get; set; }
        public virtual short DistanceCapital { get; set; }
        public virtual short DistanceBA { get; set; }
        public virtual DateTime RevisionDate { get; set; }
        public virtual DateTime DateCreate { get; set; }
        public virtual string UserCreate { get; set; }

        public virtual IList<Revisor> Revisors { get; set; }

        //order
        public virtual string LocalityOrder { get { return this.Locality.Name; } }
        public virtual string DepartmentOrder { get { return this.Locality.Department.Name; } }
        public virtual string ProvinceOrder { get { return this.Locality.Department.Province.Name; } }
        public virtual string RegionOrder { get { return this.Zone.Region.Name; } }
        public virtual string ZoneOrder { get { return this.Zone.Name; } }
    }
}
